package com.aiwiown.snackmq.api.impl;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 一个用于唯一标识主题分区的不可变类。
 */
@Getter
@AllArgsConstructor
@EqualsAndHashCode
@ToString
public final class TopicPartition {
    private final String topic;
    private final int partitionId;
}